Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support persistent-2.11 #226

Merged
merged 10 commits into from
Nov 4, 2020
Merged

Support persistent-2.11 #226

merged 10 commits into from
Nov 4, 2020

Conversation

parsonsmatt
Copy link
Collaborator

@parsonsmatt parsonsmatt commented Oct 30, 2020

Before submitting your PR, check that you've:

After submitting your PR:

  • Update the Changelog.md file with a link to your PR.
  • Check that CI passes (or if it fails, for reasons unrelated to your change, like CI timeouts).

Pending release of 2.11 on Hackage, of course, but want to ensure that we're tracking changes.

@parsonsmatt parsonsmatt marked this pull request as draft October 30, 2020 18:14
queryVals =
addVals updateVals
xs <- rawSql queryText queryVals
pure (head xs)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

connUpsertSql was changed to take the field names directly. This is the only semantic change in the PR.

handler conn f = fmap head $ uncurry rawSql $
(***) (f entDef (uDef :| [])) addVals $ updatesText conn
#endif
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a huge fan of CPP but it'd be nice to keep this available to 2.10 for a bit

@parsonsmatt parsonsmatt marked this pull request as ready for review November 4, 2020 20:30
@parsonsmatt parsonsmatt merged commit 521ac01 into master Nov 4, 2020
@parsonsmatt parsonsmatt deleted the matt/support-persistent-2.11 branch November 4, 2020 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant